<template>
    <div>
        <p>{{ msg }}</p>
        <input type="text" v-model="msg">
        <CC :title="msg" @change="childchange"/>
    </div>
</template>

<script>
import CC from './CC.vue'

export default {
    data(){
        return {
            msg :'这是父组件的'
        }
    },
    components :{
        CC
    },
    methods:{
        childchange(value){
            // this.msg = value
            console.log(value);
        }
    }
}
</script>